import request from '@/utils/request'

//登录
export const login = (data)=>{
  return request({
    method:'POST',
    url:'/mp/v1_0/authorizations',
    data:data
  })
}


//用户资料
export const getUserProfile = ()=>{
  // const user = JSON.parse(window.localStorage.getItem('user'))
  return request({
    method:'GET',
    url:'/mp/v1_0/user/profile',
    // headers:{
    //   Authorization:`Bearer ${user.token}`
    // }
  })
}

